package com.gticket.customerbackend.service;

import com.gticket.customerbackend.pojo.CinemaActualSeats;
import com.gticket.customerbackend.pojo.CinemaCode;
import com.gticket.customerbackend.pojo.Movie;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author 李浩楠
 * @date 2019/11/23 下午2:24
 */
public interface MovieScheduleService {

    public List<Movie> getAllMovies(CinemaCode cinemaCode);

    public boolean insertNewMovie(CinemaCode cinemaCode, String movie_name,
                                  String movie_englishname,
                                  String moive_act,
                                  String movie_descr,
                                  String movie_detail,
                                  String movie_type,
                                  String movie_country,
                                  int movie_time,
                                  String movie_date,
                                  BigDecimal movie_price);

    public List<Movie> getScheduledMovieByDate(CinemaCode cinemaCode,
                                               int cinema_id,
                                               int ch_id,
                                               String fs_date);

    public Movie getMovieByMovieId(CinemaCode cinemaCode, int movie_id);

    public int getMovieIdByName(CinemaCode cinemaCode, String movie_name);

    public CinemaActualSeats getTempSeats(CinemaCode cinemaCode, int cinema_id, int ch_id);

    public boolean createActualSeats(CinemaCode cinemaCode, int cinema_id, int ch_id, String row_1, String row_2, String row_3,
                                     String row_4, String row_5, String row_6, String row_7, String row_8, String row_9, String row_10,
                                     String row_11, String row_12, String row_13, String row_14, String row_15, int stock);

    public int last_id();

    public boolean createNewMovieSchedule(CinemaCode cinemaCode, int cinema_id, int ch_id, int movie_id, int as_id,
                                          String start_time, String end_time, String fs_date,String movie_version,BigDecimal movie_realprice);

    public void updateMovieScheduleFlag(CinemaCode cinemaCode, int fs_id);
}
